<!DOCTYPE html>
<html>
<head>
    <meta charset=utf-8>
    <meta http-equiv="X-UA-Compatible" content="IE=9">
    <title>{cscms:title}</title>
    <meta name="Keywords" content="{cscms:keywords}" />
    <meta name="Description" content="{cscms:description}" />
    <link rel="shortcut icon" href="{cscms:webpath}favicon.ico" />
    <link rel="stylesheet" href="{cscms:webpath}packs/font/font.css">
    <link rel="stylesheet" type="text/css" href="{cscms:tempurl}css/user.css" />
    <script type='text/javascript' src='{cscms:tempurl}js/user.js'></script>
</head>
<body style="background: #f5f5f5">
    {cscms:head}
    {cscms:right}
        {cscms:left}
            <div class="sp-cont-r">
                <div class="layui-tab layui-tab-card" lay-filter="dt1" style="margin-top: 0px;margin-bottom: 0px">
                    <ul class="layui-tab-title">
                        <li class="layui-this"><a href="[user:url userlink=pay,lists]">充值记录</a></li>
                        <li><a href="[user:url userlink=pay,spend]">消费记录</a></li>
                        <li><a href="[user:url userlink=pay,income]">分成记录</a></li>
                        <li><a href="[user:url userlink=pay,cardlist]">充值卡记录</a></li>
                    </ul>
                    <div class="layui-tab-content" style="padding:0px;background-color: #fff">
                        <div class="layui-tab-item layui-show">
                            <div class="layui-tab layui-tab-brief">
							    <ul class="layui-tab-title">
							        <li {if:[pay:pid]==0}class="layui-this"{end if}><a href="[user:url userlink=pay,lists]">全部记录</a></li>
							        <li {if:[pay:pid]==1}class="layui-this"{end if}><a href="[user:url userlink=pay,lists]/1">交易完成</a></li>
							        <li {if:[pay:pid]==2}class="layui-this"{end if}><a href="[user:url userlink=pay,lists]/2">等待发货</a></li>
							        <li {if:[pay:pid]==3}class="layui-this"{end if}><a href="[user:url userlink=pay,lists]/3">已经发货</a></li>
							        <li {if:[pay:pid]==4}class="layui-this"{end if}><a href="[user:url userlink=pay,lists]/4">交易失败</a></li>
							    </ul>
							    <style type="text/css">
									.layui-table td, .layui-table th{padding: 9px 10px;}
							    </style>
							    <div class="layui-tab-content" style="padding: 10px">
							    	<table class="layui-table" lay-even lay-skin="nob">
							    	<colgroup>
									    <col width="60">
									    <col>
									    <col>
									    <col>
									    <col>
									    <col width="65">
									    <col width="80">
									</colgroup>
							    		<thead>
							    			<tr>
							    				<th>序号</th>
												<th>定单号</th>
												<th>支付IP</th>
												<th>方式</th>
												<th>金额</th>
												<th>状态</th>
												<th>操作时间</th>
							    			</tr>
							    		</thead>
							    		<tbody>
							    			{cscms:pay table="pay" field="*" uid="auto" pagesize="25" order="desc"}
                                     		<tr{if:[pay:i]%2==1} class="re"{end if}>
												<td>[pay:i]</td>
												<td>[pay:dingdan]</td>
												<td>[pay:ip]</td>
												<td>
												{if:'[pay:type]'=='alipay' || '[pay:type]'=='cspay'}支付宝{end if}
												{if:'[pay:type]'=='tenpay'}财付通{end if}
												{if:'[pay:type]'=='wypay'}网银支付{end if}
												{if:'[pay:type]'=='kqpay'}快钱支付{end if}
												{if:'[pay:type]'=='ybpay'}易宝支付{end if}
												</td>
												<td>[pay:rmb]</td>
												<td>
												{if:[pay:pid]==0 || [pay:pid]>3}<font color=#ff3300>已失败</font>{end if}
												{if:[pay:pid]==1}<font color=#0000ff>已完成</font>{end if}
												{if:[pay:pid]==2}<font color=#009966>待发货</font>{end if}
												{if:[pay:pid]==3}<font color=#ff9900>已发货</font>{end if}
												</td>
												<td>[pay:addtime style=y-m-d H:i:s]</td>
								     		</tr>
									 	{/cscms:pay}
							    		</tbody>
									</table>
									{if:{cscms:pagedata}==0}<div class="zanwu">暂无数据！</div>{end if}
									<div class="page" style="text-align: right;{if:{cscms:pagedata}==0}display: none;{end if}">
			                            <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-0">
			                                <a href="{cscms:pagefirst}" class="layui-laypage-last" title="首页">首页</a>
			                                <a href="{cscms:pageup}" class="layui-laypage-last" title="上一页">上一页</a>
			                                {cscms:pagenum len=6}
			                                <a href="{cscms:pagedown}" class="layui-laypage-next">下一页</a>
			                                <a href="{cscms:pagelast}" class="layui-laypage-last" title="尾页">末页</a>
			                            </div>
			                       </div>
							    </div>
							</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="mar10"></div>
    <div class="mar10"></div>
{cscms:bottom}
<script type="text/javascript">
    $(document).ready(function() {
        $('#left_paylist').addClass('on');
        $('#left_first').removeClass('layui-nav-itemed');
        $('#left_paylist').parent().parent().addClass('layui-nav-itemed');
    });
</script>
</body>
</html>